package com.lijiaxing.controller;

import com.lijiaxing.pojo.Result;
import com.lijiaxing.pojo.UserRes;
import com.lijiaxing.service.authService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/auth")
public class authController {
    @Autowired
    private authService service;

    @GetMapping("/admin")
    public Result<UserRes> getAdminList(@RequestParam("pageNum") int pageNum, @RequestParam("pageSize") int pageSize) {
        return Result.success(service.queryAdminList(pageNum, pageSize), "查询成功");
    }
}
